package com.yitong.base.domain;


import java.io.Serializable;

import com.yitong.base.dao.impl.BaseServiceImpl;

public class Message<T> implements Serializable{
	
	private static final long serialVersionUID = 1L;
	public int code;
	public String message;
	public T info ;
	
	public Message(){}
	 
	public Message(int code){
		this.code = code; 
		this.message = BaseServiceImpl.getMessageValue(code);
	}
	public Message(int code,String msg){
		this.code = code;
		this.message = msg; 
	}
	public Message(int code,String msg, T _info){
		this.code = code;
		this.message = msg;
		this.info = _info;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public  T getInfo() {
		return info;
	}

	public void setInfo( T info) {
		this.info = info;
	}
 
}
